import request from '@/utils/request'
const root = process.env.API_ROOT;

/**
 * 获取主题列表
 */
export function getBbsLists(params) {
    return request({
        url: root+`/bbs/queryList`,
        method: 'post',
        param: params
    })
}

/**
 * 写blog
 */
export function writeBbsInfo(params) {
    return request({
        url: root+`/bbs/insert`,
        method: 'post',
        data: params
    })
}